Ext.define('PAS.view.GeneralForm', {
	extend: 'Ext.window.Window',
	
	alias: 'widget.generalform',

	height: 200,
	width: 300,
	layout: 'fit',
	buttonAlign: 'center',
    
	url: 'server/MyHandler.ashx?class=MenuTree&method=',
	
    initComponent: function() {
		Ext.apply(this, {
			items: [{
				xtype: 'form',
				border: false,
		    	bodyPadding: 10,
		    					
		    	layout:{
		    		type: 'vbox',
		    		align: 'stretch'
		    	},
		    	
		    	fieldDefaults:{
		    		labelAlign: 'left',
		    		labelWidth: 60
		    	},
		    	
		    	items:[{
		    		xtype: 'textfield',
		    		fieldLabel: 'id'
		    	}]
		    }],
    
			buttons:[{
		    	text: '确定',
		    	action: 'ok'
		    },{
		    	text: '取消',
		    	action: 'cancel',
		    	scope: this,
		    	handler: this.close
		    }]
		});
		
		this.callParent(arguments);
    }
});